﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xaml;
using System.IO;

namespace SanctusSoftware.CcliSongSelectImporter
{
    public static class SettingsRepository
    {

        #region Save

        public static void Save(Settings settings)
        {
            File.WriteAllText(".\\settings.xaml", GetXaml(settings));
        }

        #endregion

        #region Get Xml

        public static string GetXaml(Settings settings)
        {
            return XamlServices.Save(settings);
        }

        #endregion


    }
}
